#include"MyThread.h"
#include <unistd.h>
#include <stdio.h>
int main()
{
	MyThread *t=new MyThread();
	t->start();
	int i=0;
	while(1) 
	{
		sleep(5);
		i++;
		printf("in father Process:%d!\n",getpid());
		printf("thread is running:%d\n",t->isRunning());
		t->setStop(true);
		if (4==i) break;
	}
	delete t;
	return 0;
}
